home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Src / sport.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-17  |  1.4 KB  |  44 lines

  1. /*
  2.  * s p o r t . h            -- String ports management
  3.  *
  4.  * Copyright ⌐ 1993-1996 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
  5.  * 
  6.  *
  7.  * Permission to use, copy, and/or distribute this software and its
  8.  * documentation for any purpose and without fee is hereby granted, provided
  9.  * that both the above copyright notice and this permission notice appear in
  10.  * all copies and derived works.  Fees for distribution or use of this
  11.  * software or derived works may only be charged with express written
  12.  * permission of the copyright holder.  
  13.  * This software is provided ``as is'' without express or implied warranty.
  14.  *
  15.  * This software is a derivative work of other copyrighted softwares; the
  16.  * copyright notices of these softwares are placed in the file COPYRIGHTS
  17.  *
  18.  *
  19.  *            Author: Erick Gallesio [eg@unice.fr]
  20.  *    Creation date: 17-Feb-1993 12:27
  21.  * Last file update:  1-Feb-1995 13:38
  22.  *
  23.  *
  24.  * This is achieved in a (surely very) dependant way. A string port is implemented
  25.  * via a pseudo FILE descriptor malloc'd when open-input-string is called. This 
  26.  * descriptor is released when free-string-port is called.
  27.  */
  28.  
  29. #define SPORT_SIGNATURE    0xabcdef00    /* Magic number for a string port    */
  30. #define START_ALLOC    128        /* Initial size of an ouput string port */
  31. #define READING        01
  32. #define WRITING        02
  33.  
  34. struct str_iob {
  35.        long int    signature;
  36.        short    flag;
  37.        int    cnt;
  38.        char     *ptr;
  39.        char     *base;
  40.        int    bufsiz;
  41. };
  42.  
  43.  
  44.